-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Fix header link #1263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix header link #1263
Conversation
if (node !== wrapper) { | ||
wrapper.appendChild(node) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found that just remove these additions here and all the modifications in page.style
could work (in Safari 11 in my Mac), which means just keeping setAttribute('data-scroll', '')
only in function makeHeaderClickable
is OK.
themes/vue/source/css/_settings.styl
Outdated
@@ -23,7 +23,7 @@ $header-inner-height = 41px | |||
$heading-padding-vertical = 10px | |||
$header-height = $header-inner-height + $heading-padding-vertical * 2 | |||
$mobile-header-height = 40px | |||
$heading-link-padding-top = $content-padding-top | |||
$mobile-heading-link-padding-top = $content-padding-top | |||
$heading-link-padding-top = $header-height + $content-padding-top |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the former mistake, I advice to add some comment here and function makeHeaderClickable()
(whatever it will become finally).
@Jinjiang Done. |
cbb9f66
to
3051502
Compare
This reverts commit b73f126.
Had to revert this unfortunately to fix #1273, but I'm happy to accept another similar PR. |
@chrisvfritz Fixed that in #1280. |
* update sponsor link * update sponsor image * Fix header link (vuejs#1263) * fix header link * fix cr
This reverts commit b73f126.
Fix the problem that headers are covered by the top menu and also keep them clickable.